how to write the vector in component form